package com.it.utils;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/27 5:53 下午
 */
public class StringUtils {


    private boolean isNotBlank(String s) {
        return !isBlank(s);
    }

    public static boolean isBlank(CharSequence cs) {
        int strLen;
        if (cs != null && (strLen = cs.length()) != 0) {
            for(int i = 0; i < strLen; ++i) {
                if (!Character.isWhitespace(cs.charAt(i))) {
                    return false;
                }
            }

            return true;
        } else {
            return true;
        }
    }
}
